class AddRemainingUserAttributes < ActiveRecord::Migration
  NEW_COLUMNS = {
    :post_town => :string,
    :post_code => :string,
    :has_own_car => :boolean,
    :dietary_needs => :string,

    # The following should only be editable by a manager
    :branch_joining_date => :date,
    :current_status => :string,
    :current_role => :string,
    :shift_leader => :boolean,
    :festival_leader => :boolean,
    :share_contact_details => :boolean
  }

  def self.up
    NEW_COLUMNS.each do |column, type|    
      add_column :users, column, type
    end
  end

  def self.down
    NEW_COLUMNS.each do |column, type|
      remove_column :users, column
    end
  end
end
